#pragma once
#include "..\stdafx.h"

// CAbsRDBMSPrivoder command target

class CAbsRDBMSPrivoder
{
public:
	CAbsRDBMSPrivoder();
	virtual ~CAbsRDBMSPrivoder();


	virtual BOOL Open( const CString& strConnectionString = CString("")) = 0;
	virtual BOOL Close() = 0;

	virtual int	ExecuteNonSQL(CString& strSQLText) = 0;
	virtual int	ExecuteSQL(CString& strSQLText, _RecordsetPtr pRecordset) = 0;

protected:

	_ConnectionPtr m_pConnection;
	//m_pConnection->State m_eConnectionStatus;

	virtual BOOL IsOpen() = 0;

};


